<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>家政服务者端</title>
    <script src="https://cdn.tailwindcss.com/3.3.3"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
    <style>
        body {
            font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
            background-color: #f7f8fa;
            color: #333;
            max-width: 750px;
            margin: 0 auto;
        }
        .location-btn {
            background: rgba(255,255,255,0.9);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        .search-box {
            background: rgba(255,255,255,0.9);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        .category-item {
            transition: all 0.3s ease;
        }
        .category-item:hover {
            transform: translateY(-3px);
        }
        .order-card {
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }
        .order-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.1);
        }
        .badge-urgent {
            background: linear-gradient(135deg, #ff4d4f 0%, #f5222d 100%);
        }
        .badge-match {
            background: linear-gradient(135deg, #13c2c2 0%, #08979c 100%);
        }
        .badge-nearby {
            background: linear-gradient(135deg, #fa8c16 0%, #fa541c 100%);
        }
        .nav-tab.active {
            color: #2563eb;
            position: relative;
        }
        .nav-tab.active::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 24px;
            height: 3px;
            background-color: #2563eb;
            border-radius: 3px;
        }
    </style>
</head>
<body class="pb-16">
    <!-- 顶部定位和搜索 -->
    <div class="sticky top-0 z-10 pt-4 px-4 bg-white">
        <div class="flex items-center mb-4">
            <div class="location-btn flex items-center px-3 py-2 rounded-full mr-2">
                <i class="fas fa-map-marker-alt text-blue-500 mr-1"></i>
                <span class="font-medium">北京市朝阳区</span>
                <i class="fas fa-chevron-down text-gray-400 ml-1 text-xs"></i>
            </div>
            <div class="flex-1"></div>
            <button class="w-8 h-8 flex items-center justify-center text-gray-500">
                <i class="fas fa-bell"></i>
            </button>
        </div>
        
        <div class="search-box flex items-center px-4 py-2 rounded-full mb-4">
            <i class="fas fa-search text-gray-400 mr-2"></i>
            <input type="text" placeholder="搜索订单关键词" class="flex-1 outline-none bg-transparent text-sm">
        </div>
    </div>

    <!-- 分类导航 -->
    <div class="px-4 mb-4">
        <div class="grid grid-cols-4 gap-3">
            <div class="category-item bg-white rounded-lg p-3 text-center">
                <div class="w-12 h-12 bg-blue-50 rounded-full flex items-center justify-center mx-auto mb-2">
                    <i class="fas fa-broom text-blue-500 text-xl"></i>
                </div>
                <span class="text-xs">保洁服务</span>
            </div>
            <div class="category-item bg-white rounded-lg p-3 text-center">
                <div class="w-12 h-12 bg-purple-50 rounded-full flex items-center justify-center mx-auto mb-2">
                    <i class="fas fa-baby text-purple-500 text-xl"></i>
                </div>
                <span class="text-xs">月嫂育儿</span>
            </div>
            <div class="category-item bg-white rounded-lg p-3 text-center">
                <div class="w-12 h-12 bg-orange-50 rounded-full flex items-center justify-center mx-auto mb-2">
                    <i class="fas fa-tools text-orange-500 text-xl"></i>
                </div>
                <span class="text-xs">维修服务</span>
            </div>
            <div class="category-item bg-white rounded-lg p-3 text-center">
                <div class="w-12 h-12 bg-green-50 rounded-full flex items-center justify-center mx-auto mb-2">
                    <i class="fas fa-utensils text-green-500 text-xl"></i>
                </div>
                <span class="text-xs">做饭阿姨</span>
            </div>
        </div>
    </div>

    <!-- 订单筛选标签 -->
    <div class="px-4 mb-4 flex overflow-x-auto pb-2">
        <div class="flex space-x-2">
            <div class="bg-blue-50 text-blue-500 px-3 py-1 rounded-full text-xs whitespace-nowrap">附近3公里</div>
            <div class="bg-gray-100 text-gray-600 px-3 py-1 rounded-full text-xs whitespace-nowrap">今日可接</div>
            <div class="bg-gray-100 text-gray-600 px-3 py-1 rounded-full text-xs whitespace-nowrap">高薪订单</div>
            <div class="bg-gray-100 text-gray-600 px-3 py-1 rounded-full text-xs whitespace-nowrap">长期合作</div>
            <div class="bg-gray-100 text-gray-600 px-3 py-1 rounded-full text-xs whitespace-nowrap">新雇主</div>
        </div>
    </div>

    <!-- 附近订单区 -->
    <div class="px-4 mb-6">
        <div class="flex items-center mb-3">
            <h3 class="font-bold text-lg flex-1">附近订单</h3>
            <a href="#" class="text-sm text-gray-500">查看更多 <i class="fas fa-angle-right ml-1"></i></a>
        </div>
        
        <div class="space-y-3">
            <!-- 订单卡片1 -->
            <div class="order-card bg-white rounded-lg p-4">
                <div class="flex items-start mb-2">
                    <div class="bg-blue-100 text-blue-500 px-2 py-1 rounded text-xs mr-2">保洁服务</div>
                    <div class="text-xs text-gray-500">朝阳区附近</div>
                    <div class="flex-1 text-right">
                        <span class="text-red-500 font-bold">¥120</span>
                        <span class="text-xs text-gray-400">/3小时</span>
                    </div>
                </div>
                <div class="flex items-center mb-2">
                    <div class="text-sm flex-1">今天 14:00-17:00</div>
                    <div class="flex space-x-1">
                        <div class="badge-urgent text-white text-xs px-2 py-1 rounded-full">加急</div>
                        <div class="badge-nearby text-white text-xs px-2 py-1 rounded-full">1.2km</div>
                    </div>
                </div>
                <div class="text-sm text-gray-600 line-clamp-2">需要深度清洁厨房和卫生间，有抽油烟机清洗经验者优先...</div>
            </div>
            
            <!-- 订单卡片2 -->
            <div class="order-card bg-white rounded-lg p-4">
                <div class="flex items-start mb-2">
                    <div class="bg-purple-100 text-purple-500 px-2 py-1 rounded text-xs mr-2">月嫂育儿</div>
                    <div class="text-xs text-gray-500">海淀区附近</div>
                    <div class="flex-1 text-right">
                        <span class="text-red-500 font-bold">¥8000</span>
                        <span class="text-xs text-gray-400">/月</span>
                    </div>
                </div>
                <div class="flex items-center mb-2">
                    <div class="text-sm flex-1">3月1日开始 长期</div>
                    <div class="flex space-x-1">
                        <div class="badge-match text-white text-xs px-2 py-1 rounded-full">技能匹配</div>
                    </div>
                </div>
                <div class="text-sm text-gray-600 line-clamp-2">照顾新生儿，需要有3年以上月嫂经验，会做月子餐...</div>
            </div>
        </div>
    </div>

    <!-- 智能推荐区 -->
    <div class="px-4 mb-6">
        <div class="flex items-center mb-3">
            <h3 class="font-bold text-lg flex-1">智能推荐</h3>
            <a href="#" class="text-sm text-gray-500">换一批 <i class="fas fa-sync-alt ml-1"></i></a>
        </div>
        
        <div class="space-y-3">
            <!-- 订单卡片1 -->
            <div class="order-card bg-white rounded-lg p-4">
                <div class="flex items-start mb-2">
                    <div class="bg-orange-100 text-orange-500 px-2 py-1 rounded text-xs mr-2">维修服务</div>
                    <div class="text-xs text-gray-500">东城区附近</div>
                    <div class="flex-1 text-right">
                        <span class="text-red-500 font-bold">¥200</span>
                        <span class="text-xs text-gray-400">/次</span>
                    </div>
                </div>
                <div class="flex items-center mb-2">
                    <div class="text-sm flex-1">明天 10:00-12:00</div>
                    <div class="flex space-x-1">
                        <div class="badge-match text-white text-xs px-2 py-1 rounded-full">技能匹配</div>
                    </div>
                </div>
                <div class="text-sm text-gray-600 line-clamp-2">卫生间水管漏水维修，需要有相关资质证书...</div>
            </div>
            
            <!-- 订单卡片2 -->
            <div class="order-card bg-white rounded-lg p-4">
                <div class="flex items-start mb-2">
                    <div class="bg-green-100 text-green-500 px-2 py-1 rounded text-xs mr-2">做饭阿姨</div>
                    <div class="text-xs text-gray-500">西城区附近</div>
                    <div class="flex-1 text-right">
                        <span class="text-red-500 font-bold">¥4500</span>
                        <span class="text-xs text-gray-400">/月</span>
                    </div>
                </div>
                <div class="flex items-center mb-2">
                    <div class="text-sm flex-1">工作日 午餐+晚餐</div>
                    <div class="flex space-x-1">
                        <div class="badge-nearby text-white text-xs px-2 py-1 rounded-full">2.5km</div>
                    </div>
                </div>
                <div class="text-sm text-gray-600 line-clamp-2">为3口之家做饭，要求会做川菜，注意营养搭配...</div>
            </div>
        </div>
    </div>

    <!-- 底部导航 -->
    <div class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-100 flex justify-around py-2 max-w-750 mx-auto">
        <a href="aunt-home.html" class="nav-tab active flex flex-col items-center px-4 py-1 text-xs">
            <i class="fas fa-home text-lg mb-1"></i>
            <span>首页</span>
        </a>
        <a href="order-grab.html" class="nav-tab flex flex-col items-center px-4 py-1 text-xs text-gray-500">
            <i class="fas fa-bolt text-lg mb-1"></i>
            <span>抢单</span>
        </a>
        <a href="aunt-orders.html" class="nav-tab flex flex-col items-center px-4 py-1 text-xs text-gray-500">
            <i class="fas fa-clipboard-list text-lg mb-1"></i>
            <span>订单</span>
        </a>
        <a href="member-center.html" class="nav-tab flex flex-col items-center px-4 py-1 text-xs text-gray-500">
            <i class="fas fa-user text-lg mb-1"></i>
            <span>我的</span>
        </a>
    </div>

    <script>
        // 简单的交互效果
        document.addEventListener('DOMContentLoaded', function() {
            // 分类导航点击效果
            const categoryItems = document.querySelectorAll('.category-item');
            categoryItems.forEach(item => {
                item.addEventListener('click', function() {
                    categoryItems.forEach(i => i.classList.remove('bg-blue-50'));
                    this.classList.add('bg-blue-50');
                });
            });
            
            // 订单卡片点击效果
            const orderCards = document.querySelectorAll('.order-card');
            orderCards.forEach(card => {
                card.addEventListener('click', function() {
                    // 这里可以跳转到订单详情页
                    console.log('跳转到订单详情');
                });
            });
            
            // 底部导航切换
            const navTabs = document.querySelectorAll('.nav-tab');
            navTabs.forEach(tab => {
                tab.addEventListener('click', function(e) {
                    // 如果是当前页面的链接，阻止跳转并切换样式
                    if (this.href.includes('aunt-home.html')) {
                        e.preventDefault();
                        navTabs.forEach(t => t.classList.remove('active'));
                        this.classList.add('active');
                    }
                    // 其他页面的链接允许正常跳转
                });
            });
        });
    </script>
</body>
</html>